package com.sctu.EMSApp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import com.sctu.http.UrlConfig;
import com.sctu.httpvollry.GetVolleyHttp;

/**
 * Created by Administrator on 2016/1/5.
 */
public class MyinfoWriteNotesSuccessActivity extends Activity {

    //顶部返回的控件
    ImageView returnimage;
    //预览游记
    ImageView searchimage;
    //管理游记
    ImageView manageimage;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_myinfo_writenotes_success);
        initview();
    }

    private void initview() {
    //返回控件
        returnimage = (ImageView) findViewById(R.id.activity_myinfo_write_travel_success_returnimage);
        returnimage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                MyinfoWriteNotesSuccessActivity.this.finish();
            }
        });
        //预览游记
        searchimage = (ImageView) findViewById(R.id.activity_myinfo_write_travel_success_seaarchnotes);
        searchimage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                String id = String.valueOf(getIntent().getIntExtra("id", 0));
                MyTravelNoteActivity myTravelNoteActivity= new MyTravelNoteActivity();
                finish();
                myTravelNoteActivity.actionStart(id,MyinfoWriteNotesSuccessActivity.this);
            }
        });

        //管理游记

        manageimage = (ImageView) findViewById(R.id.activity_myinfo_write_travel_success_managenotes);
        manageimage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

                Intent intent1 = new Intent();
                intent1.setClass(MyinfoWriteNotesSuccessActivity.this, MyinfoManageNotesActivity.class);
                startActivity(intent1);
            }
        });

    }
}
